import platgo as pg
import matplotlib.pyplot as plt

problem = pg.problems.ZDT1()
maxgen = 100
N = 100

Algorithm = pg.algorithms.NSGA2(maxgen=maxgen, problem=problem)

pop = Algorithm.go(N=N)
print(pop)
Algorithm.draw(hv=True)
